// API 响应类型
export interface ApiResponse<T = any> {
  code: number;
  data: T;
  message: string;
}

// 错误类型
export interface ApiError {
  code: number;
  message: string;
  details?: Record<string, any>;
}

// 分页请求参数
export interface PaginationParams {
  page: number;
  pageSize: number;
}

// 分页响应类型
export interface PaginatedResponse<T> {
  items: T[];
  total: number;
  page: number;
  pageSize: number;
  totalPages: number;
}

// 请求配置扩展
export interface RequestConfig extends RequestInit {
  skipAuth?: boolean;
  skipErrorHandler?: boolean;
} 